package com.yifeng.repo.micro.service.server.mps;

import feign.Param;
import feign.RequestLine;
import next.fire.mps.api.TinyAppService;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.Map;

@FeignClient(name = "mpsTinyAppServiceClient", url = "${yfcloud.micro.service.mps.url}", path = "/fire-mps")
public interface TinyAppServiceClient extends TinyAppService {
    @Override
    @RequestLine("POST /TinyAppService/login")
    Map login(@Param("merchantId") String merchantId, @Param("mpAppId") String mpAppId, @Param("authCode") String authCode);
}
